import request from '@/utils/request'

// 查询产品修改历史列表
export function listScmProductsHistory(query) {
  return request({
    url: '/scm/scmProductsHistory/list',
    method: 'get',
    params: query
  })
}

// 查询产品修改历史详细
export function getScmProductsHistory(id) {
  return request({
    url: '/scm/scmProductsHistory/' + id,
    method: 'get'
  })
}

// 新增产品修改历史
export function addScmProductsHistory(data) {
  return request({
    url: '/scm/scmProductsHistory',
    method: 'post',
    data: data
  })
}

// 修改产品修改历史
export function updateScmProductsHistory(data) {
  return request({
    url: '/scm/scmProductsHistory',
    method: 'put',
    data: data
  })
}

// 删除产品修改历史
export function delScmProductsHistory(id) {
  return request({
    url: '/scm/scmProductsHistory/' + id,
    method: 'delete'
  })
}

// 查询产品修改历史列表by product IDs
export function listScmProductsHistoryByProductIds(productIds) {
  return request({
    url: '/scm/scmProductsHistory/listByProductIds/' + productIds,
    method: 'get'
  })
}
